home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 September / Personal_Computer_World_Sep_97.iso / Democd1 / GCTHEY.dxr / 00056_LR button keydown handler.ls < prev    next >
Encoding:
Text File  |  1997-06-04  |  412 b   |  22 lines

  1. on buttonselect
  2.   global button, buttoncount
  3.   if the keyCode = 124 then
  4.     set button to button + 1
  5.   end if
  6.   if the keyCode = 123 then
  7.     set button to button - 1
  8.   end if
  9.   if button = (buttoncount + 1) then
  10.     set button to 1
  11.   end if
  12.   if button = 0 then
  13.     set button to buttoncount
  14.   end if
  15.   if button = -1 then
  16.     set button to buttoncount
  17.   end if
  18.   if button = 1 then
  19.     button1()
  20.   end if
  21. end
  22.